package org.millioncall.yueyoga.admin.service;

import java.util.Map;

import org.millioncall.openplatform.common.PaginatedList;
import org.millioncall.yueyoga.admin.model.Order;
import org.millioncall.yueyoga.admin.model.TinyOrderModel;

public interface OrderService {
	public Order findById(Integer id);

	public PaginatedList<Order> findInPage(int pageNo, int pageSize);

	public int save(Order order);

	public int deleteByIds(String[] ids);

	public PaginatedList<Order> findAll();

	public Order findByOrder(Order order);

	public PaginatedList<Order> findByMemberId(Integer pageNo, Integer limit,
			Integer memberId);

	/** 查询订单记录 **/
	public PaginatedList<Order> findOrdersByCdts(int start, int limit,
			Map<String, Object> map);

	/** 查询订单记录 **/
	public PaginatedList<TinyOrderModel> findAllBuyRecord(int pageNo,
			int pageSize, Map<String, Object> params);

	/** 查询商品订单购买 **/
	public PaginatedList<Order> findGoodsOrdersByCdts(int start, int limit,
			Map<String, Object> map);
	
	public int disableOrder(String[] Ids);
	
	public int getOrderEnabledCountByMemberId(Map<String, Object> map);
	
	public int updateOrderType(Order order);
	
	/**
	 * 作废订单
	 * @param map 参数集合
	 * */
	public int disableOrder(Map<String, Object> map);
}
